package meihua.stopcarapp.ui;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import butterknife.Bind;
import butterknife.OnClick;
import meihua.mylibrary.base.BaseActivity;
import meihua.stopcarapp.R;

/***
 * 邀请好友2017/5/10
 *
 */
public class InviteActivity extends BaseActivity {


    @Bind(R.id.tv_nickname)
    TextView mTvNickname;
    @Bind(R.id.tv_invite_number)
    TextView mTvInviteNumber;
    @Bind(R.id.toolbar_left)
    ImageView mIvBack;
    @Bind(R.id.toolbar_center)
    TextView mTitleName;
    @Bind(R.id.iv_wx)
    ImageView mIvWx;
    @Bind(R.id.iv_wx2)
    ImageView mIvWx2;
    @Bind(R.id.iv_qq)
    ImageView mIvQq;
    @Bind(R.id.iv_qq2)
    ImageView mIvQq2;
    @Bind(R.id.tv_rule)
    TextView mTvRule;

    /**
     * 入口
     *
     * @param activity
     */
    public static void startAction(Activity activity) {
        Intent intent = new Intent(activity, InviteActivity.class);
        activity.startActivity(intent);
    }

    @Override
    public int getLayoutId() {
        return R.layout.activity_invite;
    }

    @Override
    public void initPresenter() {

    }

    @Override
    public void initView(Bundle savedInstanceState) {
        mTitleName.setText( "邀请好友" );
    }


    @OnClick({R.id.tv_nickname, R.id.toolbar_left, R.id.iv_wx, R.id.iv_wx2, R.id.iv_qq, R.id.iv_qq2, R.id.tv_rule})
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.tv_nickname:  //banner

                break;
            case R.id.toolbar_left:
                finish();
                break;
            case R.id.iv_wx:        //微信

                break;
            case R.id.iv_wx2:       //朋友圈

                break;
            case R.id.iv_qq:        //qq

                break;
            case R.id.iv_qq2:       //qq空间

                break;
            case R.id.tv_rule:  //查看详细规则

                break;
        }
    }


}
